<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">


<ui:composition template="../templates/template.xhtml">

	<ui:define name="title">
	 	Web Client Main 
	</ui:define>
	<ui:param name="page" value="home" />

	<ui:define name="header">
		<ui:include src="../header.xhtml" />
	</ui:define>

	<ui:define name="menu">

	</ui:define>

	<ui:define name="body">
		

		<h:form>
			<table>
				<tr>
					<td class="allnew" rowspan="3"><h:panelGrid columns="1"
						width="98%" styleClass="outerTable">
						<f:facet name="header">
							<h:outputText value="New Filings" />
						</f:facet>
						<h:column>
							<t:dataTable renderedIfEmpty="false"  id="allPeople"
								value="#{adminMainPage.dataTableList}" var="newFiling"
								styleClass="iCubed" width="98%" rows="10"
								rowIndexVar="rowNumber" preserveSort="true"
								sortColumn="#{adminMainPage.filingSorter_Received.sort}"
								sortAscending="#{adminMainPage.filingSorter_Received.ascending}"
								preserveDataModel="true"> >
								<h:column>
									<f:facet name="header">
										<h:outputText id="content" value="Content" />
									</f:facet>
									<h:outputLabel value="#{rowNumber+1}" />
								</h:column>
								<h:column>
									<f:facet name="header">
										<h:outputText id="instatiationTime" value="Received Date" />
									</f:facet>
									<h:outputText value="#{newFiling.instantiationDateTime}">
										<f:convertDateTime 
											dateStyle="medium" 
											timeZone="America/New_York" 
											type="date"/>
									</h:outputText>
								</h:column>
								<!-- 
									<h:column>
										<f:facet name="header">
											<h:outputText id="filerName" value="Filer Name" />
										</f:facet>
										<h:outputText value="#{newFiling.filerName}" /> 
									</h:column>
									 -->
								<h:column>
									<f:facet name="header">
										<h:outputText id="defendantName" value="Defendant Name" />
									</f:facet>

									<h:outputText value="#{newFiling.defendantName}" />
								</h:column>
								<h:column>
									<f:facet name="header">
										<h:outputText id="caseType" value="Case Type" />
									</f:facet>
									<h:outputText value="#{newFiling.caseType}" />
								</h:column>
								<h:column>
									<f:facet name="header">
										<h:outputText id="caseStatus" value="Case Status" />
									</f:facet>
									<h:outputText value="#{newFiling.status}" />
								</h:column>
								<h:column>
									<f:facet name="header">
										<h:outputText id="lastEvent" value="Last Event" />
									</f:facet>
									<h:outputText value="#{newFiling.eventType}" />
								</h:column>
								<h:column>
									<f:facet name="header">
										<t:commandSortHeader columnName="eventDateTime" arrow="true" immediate="true">
											<h:outputText id="lastEventTime" value="Last Event Time" />
										</t:commandSortHeader>
									</f:facet>
									<h:outputText value="#{newFiling.eventDateTime}">
										<f:convertDateTime 
											dateStyle="medium" 
											timeZone="America/New_York" 
											type="date"/>
									</h:outputText>
								</h:column>

								<h:column>
									<f:facet name="header">
										<h:outputText id="filingID" value="Case Details" />
									</f:facet>
									<h:commandLink value="Case Details"
										action="#{adminMainPage.gotoCaseDetailPage}" immediate="true">
										<f:param name="case" value="#{newFiling}"
											binding="#{adminMainPage.caseDetailsPageClicked}" />
									</h:commandLink>
								</h:column>
							</t:dataTable>
						</h:column>
						<h:column>
							<div align="center"><t:dataScroller fastStep="5"
								styleClass="scrollerTable" pageCountVar="pageCount"
								pageIndexVar="pageIndex" paginator="true" paginatorMaxPages="10"
								paginatorTableClass="paginator"
								paginatorActiveColumnStyle="font-weight:bold;" immediate="true"
								for="allPeople">
								<f:facet name="first">
									<t:graphicImage url="/images/arrow-first.gif" border="1"
										styleClass="objectList_GraphicImage" />
								</f:facet>
								<f:facet name="last">
									<t:graphicImage url="/images/arrow-last.gif" border="1"
										styleClass="objectList_GraphicImage" />
								</f:facet>
								<f:facet name="previous">
									<t:graphicImage url="/images/arrow-previous.gif" border="1"
										styleClass="objectList_GraphicImage" />
								</f:facet>
								<f:facet name="next">
									<t:graphicImage url="/images/arrow-next.gif" border="1"
										styleClass="objectList_GraphicImage" />
								</f:facet>
								<f:facet name="fastforward">
									<t:graphicImage url="/images/arrow-ff.gif" border="1"
										styleClass="objectList_GraphicImage" />
								</f:facet>
								<f:facet name="fastrewind">
									<t:graphicImage url="/images/arrow-fr.gif" border="1"
										styleClass="objectList_GraphicImage" />
								</f:facet>
							</t:dataScroller></div>
						</h:column>
					</h:panelGrid></td>
				</tr>
				<tr>
					<td class="casetype" rowspan="1"><!-- Case type Filings --> <h:graphicImage
						url="/secure/images/ByActions.gif"
						alt="Select Filing by Case Actions" /> 
						
						<!--url="/secure/images/case_type.gif" --><br />
					<h:selectOneListbox id="caseType"
						binding="#{adminMainPage.caseTypeUI}" required="true" /> <br />
					<h:commandButton value="View Filings"
						action="#{adminMainPage.submitAction}" />
					<p><h:message for="caseType" styleClass="error" /></p>
					</td>
				</tr>
				<tr>
					<td class="errorfile" rowspan="1"><!-- "Error Filings" --> <h:commandLink
						action="#{adminMainPage.gotoTransmissionErrorFilingPage}"
						immediate="true" styleClass="imgButton">
						<h:graphicImage url="/secure/images/trans_error.gif"
							alt="Transmission Error" />
					</h:commandLink> <br />
					You Have <h:outputLabel
						value="#{adminMainPage.transmissionErrorCount}"
						styleClass="textFont200" /> Transmission Error(s)</td>
				</tr>
				
				<tr>
					
					<td class="allCases" rowspan="1">
						<h:commandLink value="View all Uploaded and UnsentAddition case records "
							action="#{adminAllCaseRecordsForCaseTypeAndCaseStatusPage.goToAllCaseRecordsByCaseTypeAndStatus}"
						immediate="true" styleClass="imgButton" /></td>
				</tr>

			</table>
			
		
			
		</h:form>
	
	</ui:define>
</ui:composition>

</html>
